import request from '@/utils/request'

// 查询供应商资料列表
export function listSupplydoc(query) {
  return request({
    url: '/flow/supplydoc/list',
    method: 'get',
    params: query
  })
}

// 查询供应商资料详细
export function getSupplydoc(suppliersid) {
  return request({
    url: '/flow/supplydoc/' + suppliersid,
    method: 'get'
  })
}

// 新增供应商资料
export function addSupplydoc(data) {
  return request({
    url: '/flow/supplydoc',
    method: 'post',
    data: data
  })
}

// 修改供应商资料
export function updateSupplydoc(data) {
  return request({
    url: '/flow/supplydoc',
    method: 'put',
    data: data
  })
}

// 删除供应商资料
export function delSupplydoc(suppliersid) {
  return request({
    url: '/flow/supplydoc/' + suppliersid,
    method: 'delete'
  })
}
